function Button(a){this.node=a;this.item=null}Button.getButtonNodeQuery=function(b,a){return"div[name = '"+b+"/"+a+"']"};Button.get=function(c){var b=$(Button.getButtonNodeQuery(c.getParentItem().getId(),c.getQualifiedName()),c.getParentItem().getButtonContainer())[0];var a=new Button(b);a.item=c;return a};Button.prototype={show:function(){if(this.node){this.node.style.display=""}},hide:function(){if(this.node){this.node.style.display="none"}},refresh:function(){if(this.item.getMaxOccurs()<=this.item.getSiblings().length){this.hide()}else{this.show()}$(this.item.node).click()}};